const router = require("koa-router")();
const controllers = require("../controllers")
router.get("/",controllers.index);
router.get("/index",controllers.index);
router.get("/admin",controllers.admin);
router.post("/doAdmin",controllers.doAdmin);
router.get("/register",controllers.register);
router.post("/doRegister",controllers.doRegister);
router.get("/home",controllers.home);
router.get("/doDelete",controllers.doDelete);
router.get("/edit",controllers.edit);
router.post("/doEdit",controllers.doEdit);
router.get("/add",controllers.add);
router.post("/doAdd",controllers.doAdd);
router.get("/loginOut",controllers.loginOut);
module.exports = router;